import request from '@/utils/request'

// 审核
export function updateAudit(type, id, status, reason) {
  return request({
    url: '/ips/audit/' + type + '/' + id + '?status=' + status + '&reason=' + reason,
    method: 'get'
  })
}

// 审核记录
export function listauditRecord(type, id) {
  return request({
    url: '/ips/audit/auditRecord/' + type + '/' + id,
    method: 'put'
  })
}

// 首页节目审核记录
export function auditRecordProgram() {
  return request({
    url: '/ips/audit/auditRecordProgram',
    method: 'put'
  })
}
// 查询所有审核记录
export function auditRecordAll(query) {
  return request({
    url: '/ips/audit/list',
    method: 'get',
    params: query
  })
}
// 设置已读
export function setIsRead(id) {
  return request({
    url: '/ips/audit/setIsRead/' + id,
    method: 'put'
  })
}
